<template>
    <div>
        <div class="title">周末去哪儿</div>
    <ul>
        <li class="item border-bottom"  v-for="item of list" :key="item.id">
            <img class="item-img" :src='item.imgUrl'/>
            <div class="item-info">
                <p class="item-title">{{item.title}}</p>
                <p class="item-desc">{{item.desc}}</p> 
            </div>
        </li>
    </ul>
    </div>
</template>
<script>
export default {
  name: "HomeWeekend",
  props:{
    list:Array
  },
};
</script>
<style lang="stylus" scoped>
@import '~styles/mixins.styl';

.title {
    margin-top: 10px;
    line-height: 40px;
    padding-left: 10px;
    font-size: 18px;
    background: #ebebeb;
}


.item-img {
    width: 375px;
    height: 140px;
    padding: 5px;
}

.item-info {
    flex: 1;
    padding: 5px;
    min-width: 0;
}

.item-title {
    line-height: 26px;
    font-size: 16px;
}

.item-desc {
    line-height: 20px;
    color: #bbbbbb;
}
</style>
